--
-- Author: gnar
-- Date: 2015-12-31 16:43:05
--
local ManagerUserData = class("ManagerUserData")
local gInstance = nil


function ManagerUserData.getInstance()
	if not gInstance then
		gInstance = ManagerUserData.new()
	end

	return gInstance
end


function ManagerUserData:ctor()

	self.dataChangeId = 0 --每次数据变化 这个变量会+1
	self.userData = require "app.models.dataForm.UserData"

end


-- 单机1 联网2
function ManagerUserData:setLoginMode(loginMode)
	self.loginMode = loginMode 
end

function ManagerUserData:getActivityCharacterForChoose()
	return self.userData.characterDataForChoose[self.userData.activityCharacterId]
end




return ManagerUserData